package com.ruoyi.business.mapper;

import com.ruoyi.bizsys.domain.CreditAccount;
import com.ruoyi.bizsys.domain.LoanOrder;
import com.ruoyi.business.domain.CustAccount;
import com.ruoyi.business.domain.CustLoanIou;
import com.ruoyi.business.domain.RaiseLimitTaskVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author: Jamnsin
 * @Date: 2021/3/11 4:43 下午
 */
@Mapper
public interface LoanMapper {

    BigDecimal getAvailableQuota(String custNo);

    List<LoanOrder> loanApplyOnTheWay(String custNo);

    int updatefrozenQuota(@Param("custNo") String custNo,@Param("frozenQuota") BigDecimal frozenQuota);

    String getSuitableProduct();

    CustAccount getCustAccount(String userId);

    List<CustLoanIou> getCustNotSettledIou();

    List<RaiseLimitTaskVo> getCustNotSettledIou0_3();

    List<Map<String,Object>> getRepeatLoans(@Param("limit") int limit);

    LoanOrder getLoanorderTemp(@Param("custNo") String custNo,@Param("transferDate") String transferDate);

    LoanOrder getLoanorderTemp2(@Param("custNo") String custNo);

    void upRepeatLoanState(@Param("id") Object id);
}
